package com.tulingxueyuan.mall.modules.pms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tulingxueyuan.mall.modules.pms.model.PmsProduct;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tulingxueyuan.mall.dto.ProductSaveDto;
import com.tulingxueyuan.mall.dto.ProductUpdateInitDto;

import java.util.Map;

/**
 * <p>
 * 商品信息 服务类
 * </p>
 *
 * @author SiXiaoLong
 * @since 2022-10-13
 */
public interface PmsProductService extends IService<PmsProduct> {

    Page getPage(Integer verifyStatus, Integer publishStatus, Long brandId, String productSn, String keyword, Long productCategoryId, Integer pageNum, Integer pageSize);

    boolean updateStatus(Map map);

    boolean create(ProductSaveDto productSaveDto);

    /**
     * 根据id获取商品
     */
    ProductUpdateInitDto get(Long id);
    /**
     * 根据id修改商品
     */
    boolean updateProduct(Long id, ProductSaveDto productSaveDto);
}
